{	Problem: http://codeforces.ru/problemset/problem/45/A
	Verdict: Accepted

}
const mes:array[1..12]of string=('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
var n,cur,i:integer; s:string;
begin
readln(s);
readln(n);
for i:=1 to 12 do if mes[i]=s then cur:=i;
writeln(mes[(cur+n-1) mod 12+1]);
readln;
end.